* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Fira Code', monospace;
  margin: 0; 
  overflow: auto; 
  --color: rgba(78, 76, 76, 0.3);
  background-color: #212222;
  background-image: 
    url('../images/noise.png'), 
    linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent);
  background-size: cover, 55px 55px; 
  background-blend-mode: multiply; 
}


.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  color: white;
  position: relative; 
  z-index: 2; 
}

.ui-btn {
--btn-default-bg: rgb(41, 41, 41);
--btn-padding: 15px 20px;
--btn-hover-bg: rgb(51, 51, 51);
--btn-transition: .3s;
--btn-letter-spacing: .1rem;
--btn-animation-duration: 1.2s;
--btn-shadow-color: rgba(0, 0, 0, 0.137);
--btn-shadow: 0 2px 10px 0 var(--btn-shadow-color);
--hover-btn-color: #00ff00;
--default-btn-color: #ffffff;
--font-size: 16px;
--font-weight: 600;
--font-family: 'Fira Code', monospace;
border-radius: 4px; 
}

.ui-btn {
box-sizing: border-box;
padding: var(--btn-padding);
display: flex;
align-items: center;
justify-content: center;
color: var(--default-btn-color);
font: var(--font-weight) var(--font-size) var(--font-family);
background: var(--btn-default-bg);
border: none;
cursor: pointer;
transition: var(--btn-transition);
overflow: hidden;
box-shadow: var(--btn-shadow);
border-radius: var(--border-radius, 4px); 
}

.ui-btn span {
letter-spacing: var(--btn-letter-spacing);
transition: var(--btn-transition);
box-sizing: border-box;
position: relative;
background: inherit;
}

.ui-btn span::before {
box-sizing: border-box;
position: absolute;
content: "";
background: inherit;
}

.ui-btn:hover, .ui-btn:focus {
background: var(--btn-hover-bg);
}

.ui-btn:hover span, .ui-btn:focus span {
color: var(--hover-btn-color);
}

.ui-btn:hover span::before, .ui-btn:focus span::before {
animation: chitchat linear both var(--btn-animation-duration);
}

@keyframes chitchat {
0% {
  content: "#";
}

5% {
  content: ".";
}

10% {
  content: "^{";
}

15% {
  content: "-!";
}

20% {
  content: "#$_";
}

25% {
  content: "№:0";
}

30% {
  content: "#{+.";
}

35% {
  content: "@}-?";
}

40% {
  content: "?{4@%";
}

45% {
  content: "=.,^!";
}

50% {
  content: "?2@%";
}

55% {
  content: "\;1}]";
}

60% {
  content: "?{%:%";
  right: 0;
}

65% {
  content: "|{f[4";
  right: 0;
}

70% {
  content: "{4%0%";
  right: 0;
}

75% {
  content: "'1_0<";
  right: 0;
}

80% {
  content: "{0%";
  right: 0;
}

85% {
  content: "]>'";
  right: 0;
}

90% {
  content: "4";
  right: 0;
}

95% {
  content: "2";
  right: 0;
}

100% {
  content: "";
  right: 0;
}
}

.team-name {
font-size: 24px;
font-weight: 600;
color: #00ff00; 
font-family: 'Fira Code', monospace;
text-shadow: 0 0 3px #00ff00, 0 0 1px #00ff00; 
user-select: none;
position: relative; 
}

.team-name::after {
  content: '|';
  position: absolute;
  right: -20px; 
  top: 0;
  color: #00ff00;
  animation: blink-caret 1s linear infinite;
}

@keyframes blink-caret {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.nav-links {
  display: flex;
  flex-direction: row; 
  gap: 10px; 
}

.nav-links button {
  margin: 0; 
}

.main-content {
  user-select: none; 
  color: #f9f9f9; 
  font-family: 'Fira Code', monospace;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 20%; 
  transform: translateY(-50%); 
}

.whoami {
  font-size: 35px;
  font-weight: 700;
}

.cursor {
  display: inline-block;
  animation: blink-caret 1s linear infinite;
}

.discord-btn {
background-color: #232323; 
color: rgb(255, 255, 255);
font-family: 'Fira Code', monospace;
font-size: 16px; 
padding: 10px 20px; 
border: none;
cursor: pointer;
margin-top: 20px;
border-radius: 5px;
transition: background-color 0.4s ease;
}

.discord-btn:hover {
background-color: #302f2f; 
}

.social-links {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  z-index: 1000; 
}

.social-links img {
  width: 40px;  
  height: auto;  
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.1);
}

.mobile-nav {
  display: none;
}

.dropdown-btn {
  background-color: rgba(35, 35, 35, 0.8);
  color: #00ff00;
  padding: 12px 18px;
  border: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: all 0.3s ease-in-out;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 255, 0, 0.2);
}

.dropdown-btn:hover {
  background-color: rgba(48, 47, 47, 0.9);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3);
}

.dropdown-content {
  font-family: 'Fira Code', monospace;
  display: none;
  position: absolute;
  background-color: rgba(10, 10, 10, 0.95);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 1;
  right: 20px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(-10px);
}

.dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: #00ff00;
  padding: 14px 18px;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease-in-out;
  font-size: 18px;
  font-weight: 670;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

.dropdown-content a:hover {
  background-color: rgba(0, 255, 0, 0.1);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.9);
  padding-left: 24px;
}


.dropdown-content a:not(:last-child) {
  border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

@media screen and (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .main-content {
    left: 5%;
    right: 5%;
    transform: translateY(-50%);
    text-align: center;
  }

  .whoami {
    font-size: 28px;
  }

  .social-links {
    bottom: 10px;
    right: 10px;
  }

  .social-links img {
    width: 30px;
  }
}

@media screen and (max-width: 480px) {

  .dropdown-content {
    right: 10px;
    min-width: 200px;
  }
  
  .dropdown-btn {
    font-size: 24px;
    padding: 10px 15px;
  }

  .dropdown-content a {
    font-size: 16px;
    padding: 12px 16px;
  }

  .team-name {
    font-size: 20px;
  }

  .whoami {
    font-size: 24px;
  }

  .main-content p {
    font-size: 14px;
  }

  .discord-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

.meme {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; 
  height: 200px; 
  background-size: cover; 
  background-position: center; 
  border: 2px solid #00ff00; 
  border-radius: 8px; 
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
}

.main {
  color: #f9f9f9; 
  font-family: 'Fira Code', monospace;
  padding: 40px 20px;
  position: relative;
  max-width: 900px;
  margin: auto;
}

h1 {
  font-size: 32px;
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  border-bottom: 2px solid rgba(0, 255, 0, 0.4);
  padding-bottom: 10px;
  user-select: none;
  margin-bottom: 30px;
}

.cursor {
  display: inline-block;
  animation: blink-caret 1s linear infinite;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.member {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border: 2px solid #00ff00;
  user-select: none;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.member {
  background-color: rgba(0, 0, 0, 0.4); 
  padding: 20px;
  border: 2px solid #00ff00;
  user-select: none;
  border-radius: 10px;
  backdrop-filter: blur(7px) saturate(150%); 
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}

.member h2 {
  color: #00ff00;
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
  transition: text-decoration 0.3s ease;
}

.member p {
  color: #f1f1f1;
  font-size: 16px;
  font-weight: 300;
}

.member:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

.member h2::before {
  content: "//";
  color: #00ff00;
  margin-right: 5px;
}

.member h2:hover {
  text-decoration: none;
}

@keyframes blink-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease; 
}

a:hover {
  color: rgb(0, 255, 0);
}

#piano-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#piano-modal:not(.hidden) .modal-overlay {
  opacity: 1;
}

.piano-container {
  position: relative;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 15px;
  display: flex;
  gap: 15px;
  z-index: 1001;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: background 0.3s;
}

.piano-key {
  width: 80px;
  height: 240px;
  background: #333;
  border: 2px solid #555;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, transform 0.1s, border-color 0.2s;
  position: relative;
  box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.3);
}

.piano-key:hover {
  background: #444;
}

.piano-key.active {
  background: #555;
  transform: scaleY(0.95);
  border-color: #777;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .piano-container {
      flex-direction: column;
      gap: 10px;
      padding: 15px;
  }

  .piano-key {
      width: 60px;
      height: 180px;
      font-size: 20px;
  }
}

.hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

#piano-modal:not(.hidden) {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.piano-container {
  position: relative;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 20px;
  display: flex;
  gap: 20px;
  z-index: 1001;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#piano-modal:not(.hidden) .piano-container {
  transform: scale(1);
  opacity: 1;
}

.piano-key {
  width: 80px;
  height: 240px;
  background: linear-gradient(145deg, #444, #2c2c2c);
  border: 3px solid #555;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transform: perspective(600px) rotateX(0deg);
}

.piano-key:hover {
  background: linear-gradient(145deg, #555, #3a3a3a);
  transform: perspective(600px) rotateX(-10deg);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.piano-key:active,
.piano-key.active {
  background: linear-gradient(145deg, #666, #4a4a4a);
  transform: perspective(600px) rotateX(0deg) scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

#searchBox {
  position: relative;
  width: 100%;
  padding: 10px 10px 10px 30px;
  font-size: 16px;
  margin-bottom: 20px;
  border: none;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #e8e8e8;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

#searchBox::before {
  content: '//';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff00;
  font-size: 18px;
  font-weight: bold;
  opacity: 0.7;
  transition: all 0.3s ease;
  pointer-events: none;
}

#searchBox::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: #00ff00;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#searchBox:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4), inset 0 0 5px rgba(0, 255, 0, 0.2);
}

#searchBox:focus::before {
  opacity: 1;
}

#searchBox:focus::after {
  opacity: 1;
}

#searchBox:hover {
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.3);
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.2); }
  50% { box-shadow: 0 0 15px rgba(0, 255, 0, 0.3); }
}

#searchBox:hover:not(:focus) {
  animation: subtlePulse 2s infinite ease-in-out;
}

#searchBox::placeholder {
  color: rgba(241, 241, 241, 0.5);
  transition: opacity 0.3s ease;
}

#searchBox:focus::placeholder {
  opacity: 0;
}

body {
  background-color: #1a1a1a; 
  color: #e0e0e0; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ctf-side-tab {
  position: fixed;
  left: -120px; 
  top: 50%;
  transform: rotate(-90deg);
  background: #4f83f6;  
  color: white;
  padding: 10px 20px; 
  border-radius: 8px;  
  cursor: pointer;
  transition: left 0.4s ease, background 0.4s ease, box-shadow 0.4s ease; 
  opacity: 1;
  left: -120px;
  z-index: 1000;
  font-size: 18px; 
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3); 
  letter-spacing: 0.5px;
  font-weight: 500; 
  white-space: nowrap;  
}

.ctf-side-tab:hover {
  left: -115px; 
  background: #2563eb;  
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4); 
}

.ctf-panel {
  position: fixed;
  left: -400px;
  top: 0;
  width: 350px;
  height: 100%;
  background: #2c2c2c;  
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5); 
  transition: left 0.4s ease, box-shadow 0.4s ease; 
  z-index: 999;
  padding: 25px;
  box-sizing: border-box;
}

.ctf-panel.active {
  left: 0;
}

.ctf-close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #b0b0b0;  
  transition: color 0.3s ease, transform 0.3s ease; 
  padding: 5px;
  line-height: 1;
}

.ctf-close-btn:hover {
  color: #3b82f6;
  transform: rotate(90deg);
}

.ctf-invite-btn {
  display: inline-block;
  background: #3b82f6;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 20px;
  transition: background 0.5s ease, transform 0.5s ease; 
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.ctf-invite-btn:hover {
  background: #2563eb;
  transform: translateY(-2px); 
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.ctf-panel h2 {
  color: #e0e0e0;  
  margin-top: 20px;
  font-size: 22px; 
  font-weight: 600;
  margin-bottom: 20px;
}

.ctf-panel p {
  color: #b0b0b0;  
  line-height: 1.6;
  margin: 15px 0;
  font-size: 15px; 
}

.ctf-panel ul {
  list-style-type: none;
  padding-left: 0;
  margin: 20px 0;
}

.ctf-panel ul li {
  margin: 12px 0;
  color: #b0b0b0; 
  font-size: 15px; 
  padding-left: 24px;
  position: relative;
}

.ctf-panel ul li::before {
  content: "•";
  color: #3b82f6; 
  position: absolute;
  left: 8px;
  font-weight: bold;
}

.ctf-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);  
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease; 
  z-index: 998;
  backdrop-filter: blur(5px);
}

.ctf-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease; 
}

.ctf-side-tab.hidden {
  left: -200px; 
  opacity: 0; 
  pointer-events: none; 
}